﻿
namespace DuplicateFileExplorer
{
	#region ErroredEventArgs
	/// <summary>
	/// ErroredEventArgs contains information about an Exception that
	/// the FileSearcher encountered and supports indicating if the
	/// current search should be cancelled.
	/// </summary>
	public class ErroredEventArgs : System.EventArgs
	{
		/// <summary>
		/// Constructor
		/// </summary>
		public ErroredEventArgs()
		{

		}

		/// <summary>
		/// Gets or sets the exception that was encountered.
		/// </summary>
		public System.Exception Error { get; set; }
		/// <summary>
		/// Gets or sets the name of the directory that encountered the error.
		/// </summary>
		public string CurrentDirectory { get; set; }
		/// <summary>
		/// Gets or sets the pattern that was being searched.
		/// </summary>
		public string CurrentSearchPattern { get; set; }
		/// <summary>
		/// Gets or sets whether or not to cancel the current operation.
		/// </summary>
		public bool Cancel { get; set; }
	}
	#endregion
}